#include <iostream>
#include <vector>

using namespace std;

vector<int>::const_iterator find_val(vector<int>::const_iterator beg,vector<int>::const_iterator end,int value,vector<int>::size_type &occurs)
{
	vector<int>::const_iterator res_iter =end;
	occurs = 0;
	for(/*null*/ ; beg != end ; ++beg)
		if(*beg== value)
		{
			if(res_iter == end)
				res_iter = beg;
			++occurs
		}
		return res_iter;
}

int main()
{
}